interface ICollection {
    // 索引签名
    [index: string]: number
    length: number
}

const names: number[] = [111, 22, 33]

function iteratorCollection(collection: ICollection) {
    console.log(collection[0])
}

// iteratorCollection(names)
// const tuple: [string, string] = ["why", "19"]
// iteratorCollection(tuple)


// const info = { name: "baki" length: 10 }
iteratorCollection({ name: 11, age: 19, length: 10 })


export { }